import request from '@/utils/request'
import config from '@/config'

/**
 * 登录
 * @param params 
 * @returns 
 */
export function login(params: Record<string, any>) {
    return request.post({
        url: '/admin/login/account', params: {
            ...params,
            terminal: config.terminal
        }
    })
}

export function getUserInfo() {
    return request.get({ url: '/admin/system.admin/mySelf' })   
}

// export function logout() {
//     return request.post({ url: '/admin/system.user/logout' })
// }
